Update client
Update attributes of the client. Update the name
, client_secret
, or
webhook_uri
of the client
Body Required
-
The client secret(s). It is an array datatype to allow for rotation of secrets without downtime for your customers
-
Indicates the URI to return the user to after authorization is complete, which is the endpoint on your server to receive the authorization_code.
Must be identical to the redirect URI provided in the original link.
Please email me after signup and I will set both your client secret and redirect_uri (required) when you reach out.
-
Name of your app that shows up in the Affix Connect application
-
webhook_uri string | null
If enabled, webhooks will be sent to this endpoint
POST /2023-03-01/management/client
curl \
-X POST https://api.affixapi.com/2023-03-01/management/client \
-H "Authorization: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"client_secret":["ffffffff-ffffffff-ffffffff-ffffffff","aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa"],"redirect_uris":["https://app.your-company.com","https://dev.app.your-company.com"],"name":"Your App","webhook_uri":"https://webhooks.your-company.com/aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa"}'
Request examples
{
"client_secret": [
"ffffffff-ffffffff-ffffffff-ffffffff",
"aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa"
],
"redirect_uris": [
"https://app.your-company.com",
"https://dev.app.your-company.com"
],
"name": "Your App",
"webhook_uri": "https://webhooks.your-company.com/aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa"
}
Response examples (200)
{
"client_id": "00000000-00000000-00000000-00000000",
"client_secret": [
"ffffffff-ffffffff-ffffffff-ffffffff",
"aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa"
],
"redirect_uris": [
"https://app.your-company.com",
"https://dev.app.your-company.com"
],
"name": "Your App",
"webhook_uri": "https://webhooks.your-company.com/aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa"
}
Response examples (400)
{
"message": "string",
"validation_error": "string"
}
Response examples (401)
{
"error": "authentication_error",
"message": "Your password is incorrect",
"code": "incorrect_username_or_password"
}
Response examples (409)
{
"code": "string",
"token": "string",
"error": "conflict"
}
Response examples (429)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (500)
{
"message": "string"
}