{
"data": {
"type": "AttributeConfig",
"attributes": {
"customId": "string",
"target": "User",
"type": "boolean",
"label": "string",
"sublabel": "string",
"description": "string",
"options": [
{
"value": "string",
"label": "string"
}
],
"labelQuestion": "string",
"registration": {
"collect": true
},
"required": true,
"editPermission": 0,
"viewPermission": 0,
"settings": {
"link": {
"display": {
"asButton": true
},
"authenticated": true,
"clickBehavior": "newWindow"
}
}
},
"relationships": {}
}
}
curl --location --request POST 'https://api.synap.ac/v3/attribute-configs' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "AttributeConfig",
"attributes": {
"customId": "string",
"target": "User",
"type": "boolean",
"label": "string",
"sublabel": "string",
"description": "string",
"options": [
{
"value": "string",
"label": "string"
}
],
"labelQuestion": "string",
"registration": {
"collect": true
},
"required": true,
"editPermission": 0,
"viewPermission": 0,
"settings": {
"link": {
"display": {
"asButton": true
},
"authenticated": true,
"clickBehavior": "newWindow"
}
}
},
"relationships": {}
}
}'
{
"data": {
"id": "FID001",
"type": "AttributeConfig",
"attributes": {
"customId": "string",
"target": "User",
"type": "boolean",
"label": "string",
"sublabel": "string",
"description": "string",
"options": [
{
"value": "string",
"label": "string"
}
],
"labelQuestion": "string",
"registration": {
"collect": true
},
"required": true,
"editPermission": 0,
"viewPermission": 0,
"settings": {
"link": {
"display": {
"asButton": true
},
"authenticated": true,
"clickBehavior": "newWindow"
}
},
"inUse": true
},
"relationships": {}
}
}