Fluxmail

Change the mailboxes an OAuth connection can use

Reference for PATCH /api/v1/me/oauth-connections/{grantId}.

PATCH /api/v1/me/oauth-connections/{grantId}

Reference for PATCH /api/v1/me/oauth-connections/{grantId}.

Authentication

Pass a Fluxmail member session as a bearer token. API keys cannot use this endpoint.

Request

curl 'http://localhost:8977/api/v1/me/oauth-connections/grantId_123' \
  -X PATCH \
  -H "Authorization: Bearer $FLUXMAIL_SESSION" \
  -H "Content-Type: application/json" \
  --data '{
  "accountIds": [
    "string"
  ]
}'

Parameters

NameLocationRequiredTypeDetails
grantIdpathYesstringMinimum length: 1.

Request body

Content type: application/json

{
  "type": "object",
  "properties": {
    "accountIds": {
      "type": "array",
      "nullable": true,
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 1,
      "maxItems": 100
    }
  },
  "required": [
    "accountIds"
  ],
  "additionalProperties": false
}

Responses

StatusDescriptionContent type
200Successapplication/json
400Invalid requestapplication/json
401Authentication requiredapplication/json
403Permission deniedapplication/json
404Not foundapplication/json
409Conflictapplication/json
413Request body too largeapplication/json
429Too many attemptsapplication/json

200 response

{
  "type": "object",
  "properties": {
    "data": {
      "nullable": true
    }
  }
}

Last updated