API ReferenceManagementUsersCustom Attributes
POST
/v1/mgmt/user/customattribute/delete

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

names?array<string>
string

Delete a custom attributes to configure on users within a project, using a valid management key.

This API endpoint will delete a custom attribute within a project.

See also

curl -X POST "https://api.descope.com/v1/mgmt/user/customattribute/delete" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": [    {      "name": "string",      "type": 0,      "options": [        {          "value": "string",          "label": "string"        }      ],      "displayName": "string",      "defaultValue": {        "@type": "string"      },      "viewPermissions": [        "string"      ],      "editPermissions": [        "string"      ]    }  ],  "total": "string"}
export interface Response {data?: Customattributesv1[]total?: string}/** * this object is used in project exports, make sure any changes here *  are also applied in managementservice */export interface Customattributesv1 {name: stringtype: numberoptions?: {value?: stringlabel?: string}[]displayName?: stringdefaultValue?: GoogleProtobufviewPermissions?: string[]editPermissions?: string[]}/** * Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. */export interface GoogleProtobuf {/** * The type of the serialized message. */"@type"?: string[k: string]: unknown}
Was this helpful?