Types

Create Type

curl -X POST --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types" \ --header 'Content-Type:application/json' \ --data '{ "name": "PersonType", "attributes": [{ "name" : "Family-Name" }, { "name" : "Year-Born" }] }'

List Types

curl -X GET --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types"

Update Type

curl -X PUT --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types/PersonType" \ --header 'Content-Type:application/json' \ --data '{ "name": "PersonType2" }'

Delete Type

Â