Skip to end of banner
Go to start of banner

Types

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

curl -X DELETE --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env/types/PersonType" \
  --header 'Content-Type:application/json'

  • No labels