Delete an attribute
Removes an attribute from an entity type. Note that all the data associated with this attribute is lost well. In other words, the attribute -- and its value -- are removed from each user profile in the entity type.
Refer to the Registration error codes page for details on error codes.
API client permissions
The following table indicates the API clients that can and can't be used to call this operation:
owner | access_issuer | direct_access | direct_access_read | login_client |
---|---|---|---|---|
✓ | ✗ | ✗ | ✗ | ✗ |
Authentication
This operation supports both Basic authentication (recommended) and janrain-signed authentication. See Get started for more information.
Base URL
The base URL for this operation is your Identity Cloud Capture domain; for example:
https://educationcenter.us-dev.janraincapture.com
Your Capture domain (also known as a Registration domain) can be found in Console on the Manage Application page.
Examples
Example request: Remove an attribute from an entity type
This command removes the fullName attribute from the user entity type. Note that there is no way to undo the removal of a schema attribute.
curl -X POST \
-H "Authorization: Basic c2dueXZ1czZwYzRqbTdraHIybmVxNWdzODlnYnIyZXE6d3Q0YzN1bjl3a2tjZnZ5a25xeDQ0eW5jNDc2YWZzNjg"\
--data-urlencode type_name=user \
--data-urlencode attribute_name=fullName \
https://my-app.janraincapture.com/entityType.removeAttribute
Example response
If your API call succeeds the response consists of all the attributes still assigned to the entity type.
{
"schema": {
"attr_defs": [
{
"description": "simple identifier for this entity",
"name": "id",
"type": "id"
},
{
"description": "globally unique identifier for this entity",
"name": "uuid",
"type": "uuid"
},
{
"description": "when this entity was created",
"name": "created",
"type": "dateTime"
},
{
"description": "when this entity was last updated",
"name": "lastUpdated",
"type": "dateTime"
},
{
"case-sensitive": false,
"length": 1000,
"name": "Description",
"type": "string"
},
{
"case-sensitive": false,
"length": null,
"name": "Name",
"type": "string"
}
],
"name": "user"
},
"stat": "ok"
}
Parameters
All parameters need to be configured as x-www-form-urlencoded body parameters.
Parameter | Type | Required | Description |
---|---|---|---|
type_name | string | ✓ | Name of the entity type containing the attribute. |
attribute_name | string | ✓ | Name of the attribute you're deleting. |
Updated almost 2 years ago