ResourceDescriptors
Add a field descriptor
Adds a field to a descriptor. Use this to document a CSV column, JSON path, SQL column, OIDC claim, form field, credential claim, or presentation attribute that can be validated, mapped, governed, or transformed.
post/resource/descriptors/{resourceDescriptorId}/fields
Path parameters
resourceDescriptorIdstring uuid required
Stable identifier for a described external or internal resource shape.
Example:41436f49-040c-4f5f-9c7f-657f43762e2b
Stable identifier of the resource descriptor that describes the shape, representation, and semantic meaning of a connector resource.
Request body
Example request
{
"fieldPath": "email",
"displayName": "Work email",
"valueType": "string",
"required": true,
"multiValued": false,
"semanticAttributeId": "3cb996ce-9d68-4959-b8c4-c97e39258fae",
"sensitivity": "personal-data",
"retention": {
"purpose": "credential-issuance",
"legalBasis": "contract",
"retentionPeriod": "P30D",
"deleteAction": "DELETE"
}
}Response
Field descriptor created.
Example response
{
"fieldDescriptorId": "f00b9edc-5498-483f-9b91-a42ef080b909",
"fieldPath": "email",
"displayName": "Work email",
"valueType": "string",
"required": true,
"multiValued": false,
"semanticAttributeId": "3cb996ce-9d68-4959-b8c4-c97e39258fae",
"sensitivity": "personal-data"
}