API Reference/Management/Users/Custom Attributes
POST
/v1/mgmt/user/customattribute/create

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
attributesarray<object>
curl -X POST "https://api.descope.com/v1/mgmt/user/customattribute/create" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "attributes": [
      {
        "name": "string",
        "type": 0,
        "options": [
          {
            "value": "string",
            "label": "string"
          }
        ],
        "displayName": "string",
        "defaultValue": {
          "@type": "string"
        },
        "viewPermissions": [
          "string"
        ],
        "editPermissions": [
          "string"
        ],
        "editable": true
      }
    ]
  }'

OK

{
  "data": [
    {
      "name": "string",
      "type": 0,
      "options": [
        {
          "value": "string",
          "label": "string"
        }
      ],
      "displayName": "string",
      "defaultValue": {
        "@type": "string"
      },
      "viewPermissions": [
        "string"
      ],
      "editPermissions": [
        "string"
      ],
      "editable": true
    }
  ],
  "total": "string"
}

Was this helpful?