Add new category

POST {{url}}/exchange/api/v1/organizations/{{organization_id}}/categories

Generated from a curl request:
curl -X POST -H Authorization: Bearer {{token}} -H Content-Type: application/json -d '{
displayName: “CustomFieldTest”,
tagKey: “TagKeyTest”,
dataType: text,
assetTypeRestrictions: []
}
' [https://anypoint.mulesoft.com/exchange/api/v1/organizations/59995d29-ebe2-43d9-a52b-766683fd41a7/fields\\](https://anypoint.mulesoft.com/exchange/api/v1/organizations/59995d29-ebe2-43d9-a52b-766683fd41a7/fields\")

Request Body

{"displayName"=>"test3", "acceptedValues"=>["test", "test2"], "assetTypeRestrictions"=>["connector", "extension"]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring