Reference / Lifecycle

Update a profile field.

PATCH /v1/profile-fields/{id}
Secret API key operationId: update_field

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    Profile-field id

Request body · required

  • field_type string
  • label string
  • options Value?
  • position integer<int32> int32
  • required boolean

Responses

200 Field updated
{
  "data": {
    "field_type": "string",
    "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "key": "string",
    "label": "string",
    "options": {},
    "position": 0,
    "required": false
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
404 No such field

Request

curl -X PATCH "http://localhost:8080/v1/profile-fields/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f" \
  -H "Content-Type: application/json" \
  -d '{
  "field_type": "string",
  "label": "string",
  "options": {},
  "position": 0,
  "required": false
}'

Try it

live request
PATCH http://localhost:8080/v1/profile-fields/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f

Path parameters

Request body

application/json