deleteBidRequirement
Requires permission biddesk:bid:update.
Deletes a requirement and its links; its reference can then be used again. Refused with VERSION_CONFLICT when someone changed it first. Requires Bid Desk and permission to edit bids.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation DeleteBidRequirement($input: DeleteBidRequirementInput!) {
deleteBidRequirement(input: $input)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DeleteBidRequirement($input: DeleteBidRequirementInput!) {\n deleteBidRequirement(input: $input)\n}",
"variables": {
"input": {
"expectedVersion": 0,
"id": "id"
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"id": "id"
}
}
Response:
{
"data": {
"deleteBidRequirement": true
}
}
deleteBidRequirement(
input: DeleteBidRequirementInput!
): Boolean!
Arguments
deleteBidRequirement.input ● DeleteBidRequirementInput! non-null input
The requirement and the version the change is based on.
Type
Boolean scalar
The Boolean scalar type represents true or false.