Skip to content
Connect an agent

Profiles

Change a profile

Its name or its external id.

PATCH/v1/profiles/{id}

TL;DR

QuestionAnswer
What does it do?Change a profile.
What does it need?An API key or an OAuth access token.
What does it take?A JSON body with the fields below, and id in the path.
What does it return?Status 200 with a body of type Profile.
In the SDK?flung.profiles.update()
What can go wrong?401 Missing, unknown, revoked or expired API key; 404 No such profile in this workspace; 409 Another profile already has this external id; 422 The request failed validation; 429 Too many requests for this credential; wait for retry-after seconds. Every failure has the same error shape.

Example

curl
curl -X PATCH 'https://api.flung.dev/v1/profiles/prof_aaaaaaaaaaaaaaaaaaaaaaaa' \  --header "Authorization: Bearer $FLUNG_API_KEY" \  --header 'Content-Type: application/json' \  --data '{  "name": "Acme Studio",  "externalId": "user_8412"}'

A successful answer looks like this:

json
{  "id": "prof_aaaaaaaaaaaaaaaaaaaaaaaa",  "name": "string",  "externalId": "string",  "createdAt": "2026-11-01T09:00:00.000Z",  "updatedAt": "2026-11-01T09:00:00.000Z"}

Path parameters

FieldTypeRequiredDescription
idstringyes

Request body

The body has the type an object, with the fields below.

FieldTypeRequiredDescription
namestringnoA name for people to read, such as your customer's name. Letters and digits of every script, spaces, and - _ . ' & ( ) +. No emoji, other symbols or invisible characters. Runs of spaces become one and the ends are trimmed. It must hold a letter or a digit, and may not be profane. at least 1 character; at most 200 characters.
externalIdstring | nullnoA new external id, or null to clear it. at least 1 character; at most 255 characters.

Responses

StatusMeaningBody
200The profile.Profile
401Missing, unknown, revoked or expired API key.Error
404No such profile in this workspace.Error
409Another profile already has this external id.Error
422The request failed validation.Error
429Too many requests for this credential; wait for retry-after seconds.Error

Response body

A 200 answer has the type Profile.

FieldTypeRequiredDescription
idstringyes
namestringyes
externalIdstring | nullyes
createdAtstringyes
updatedAtstringyes

See also

DocWhy
API referenceEvery endpoint
SchemasEvery request and response type
ErrorsEvery error code and what to do about it