Update profile field
/api/settings/profile-fields/{id}Rename a field and, for a pick-list, replace its options. An option sent with its id keeps the members who picked it; one left out is removed and clears their answer. The kind and who sees the field by default do not change; sending a different default is refused.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/settings/profile-fields/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "kind": null, "defaultVisibility": null, "options": null }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "kind": "string", "defaultVisibility": "string", "options": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "label": "string", "roleId": null } ]}Remove profile field DELETE
Remove a field and every member's answer to it. Needs the `ManageSettings` permission.
Fill a profile field from Discord roles POST
Gives every current member who holds the role linked to one of the field's options that option, unless they already answered the field. A member who holds roles of two options gets the first option in the field's order. Answers follow the field's default level. Discord roles are not changed. Needs the `ManageSettings` permission.