Postifuse Docs

Profiles

Rename a profile

PATCHhttps://postifuse.com/v1/profiles/{id}

Changes the name or the external_id of a profile. Its accounts and posts are not touched.

curl --request PATCH \
  --url 'https://postifuse.com/v1/profiles/id_1' \
  --header 'Authorization: Bearer pf_live_…' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Martin Bakery Lyon"
}'
{
  "id": "prf_martin",
  "name": "Martin Bakery Lyon",
  "external_id": "cus_8f3a2",
  "is_default": false,
  "accounts": 3
}

Headers

Authorizationstringrequired

Bearer followed by a workspace key, a profile key or an OAuth token. See authentication.

Example Bearer pf_live_…

Path parameters

idstringrequired

The profile id.

Body application/json

namestring

New name.

Example Martin Bakery Lyon

external_idstring

New customer id.

Example cus_8f3a2

Response

200The profile
403Workspace not active