Upgrade package policy to a newer package version

POST /api/fleet/package_policies/upgrade

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/package_policies/upgrade

Refer to Spaces for more information.

application/json

Body

  • packagePolicyIds array[string] Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • name string
    • success boolean Required
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
  • 409 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
POST /api/fleet/package_policies/upgrade
curl \
 --request POST 'https://localhost:5601/api/fleet/package_policies/upgrade' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"packagePolicyIds":["string"]}'