Table of Contents |
---|
Create Type
Code Block | ||
---|---|---|
| ||
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
Code Block | ||
---|---|---|
| ||
curl -X GET --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types"
|
Update Type
Code Block | ||
---|---|---|
| ||
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
Code Block | ||
---|---|---|
| ||
curl -X DELETE --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types/PersonType" \
--header 'Content-Type:application/json'
|