{
  "CurrentRequestName": "AddType",
  "CurrentPath": "IncidentType.rest",
  "Name": "IncidentType",
  "Requests": [
    {
      "Name": "AddType",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/incidents/types",
      "Method": "POST",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveTypes",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/incidents/types",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveDefaultType",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/incidents/types/default",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveWorkflowTransitions",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/incidents/types/{incident_type_id}/workflow/transitions?status_id={incident_status_id}&is_detector={is_detector}&isOwner={is_owner}",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "incident_type_id",
          "TokenName": "{incident_type_id}",
          "Value": ""
        },
        {
          "Name": "incident_status_id",
          "TokenName": "{incident_status_id}",
          "Value": ""
        },
        {
          "Name": "is_detector",
          "TokenName": "{is_detector}",
          "Value": ""
        },
        {
          "Name": "is_owner",
          "TokenName": "{is_owner}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveWorkflowFields",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/incidents/types/{incident_type_id}/workflow/fields?status_id={incident_status_id}",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "incident_type_id",
          "TokenName": "{incident_type_id}",
          "Value": ""
        },
        {
          "Name": "incident_status_id",
          "TokenName": "{incident_status_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveWorkflowCustomProperties",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/incidents/types/{incident_type_id}/workflow/custom-properties?status_id={incident_status_id}",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "incident_type_id",
          "TokenName": "{incident_type_id}",
          "Value": ""
        },
        {
          "Name": "incident_status_id",
          "TokenName": "{incident_status_id}",
          "Value": ""
        }
      ]
    }
  ]
}
