Set task links from production schedule version

POST /actions/production-schedule-versions/{production_schedule_version_id}/set-task-links-from-production-schedule-version

Set task links for given production schedule version from another production schedule version.

Path parameters

  • production_schedule_version_id string(uuid) Required

    Production schedule version unique identifier

application/json

Body Required

  • production_schedule_version_id string(uuid) Required

    Source production schedule version unique identifier

Responses

  • 200 application/json

    Task links created

  • 400

    Wrong ID format

POST /actions/production-schedule-versions/{production_schedule_version_id}/set-task-links-from-production-schedule-version
curl -X POST "http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production-schedule-version" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "production_schedule_version_id": "b35b7fb5-df86-5776-b181-68564193d36"
}'
import requests

url = "http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production-schedule-version"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json",
    "Content-Type": "application/json"
}
params = {}
payload = {
    "production_schedule_version_id": "b35b7fb5-df86-5776-b181-68564193d36"
}

response = requests.post(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
curl \
 --request POST 'http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production-schedule-version' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"production_schedule_version_id":"b35b7fb5-df86-5776-b181-68564193d36"}'
Request examples
{
  "production_schedule_version_id": "b35b7fb5-df86-5776-b181-68564193d36"
}
Response examples (200)
{}