Changes name and/or redirect_uris. type and the acting user are fixed at creation. Values are stored as sent.
Responses
-
OK - the updated client.
-
Bad Request - the body names neither
namenorredirect_uris, the body namesuser_idor changestype(both fixed at creation; an unchangedtypemay ride along),nameis empty, over 100 characters or a reserved name (TASKWORKER,PUBLICLINKAPI,FLATTENTASKAPI),redirect_urisholds a value that is not an absolute http(s) URL, orredirect_urisis empty while the client'stypeincludesauthorization_code. -
Unauthorized - missing or invalid bearer token.
-
Forbidden - the token belongs to a BASIC user, or
profile_idis not the caller's own profile. -
Not Found - no such client in the profile.
PUT
/profiles/{profile_id}/api_clients/{client_id}
curl \
--request PUT 'https://api.iformbuilder.com/exzact/api/v80/[servername]/profiles/self/api_clients/15' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"name": "Field app (staging)",
"redirect_uris": [
"https://staging.example.com/oauth/callback"
]
}'
Request example
{
"name": "Field app (staging)",
"redirect_uris": [
"https://staging.example.com/oauth/callback"
]
}
Response examples (200)
{
"id": 42,
"name": "string",
"client_key": "string",
"username": "string",
"type": [
"jwt-bearer"
],
"redirect_uris": [
"https://example.com"
]
}