saveBidClause
Requires permission biddesk:settings:manage.
Creates a library clause, or changes its title, text and risk tags. Refused with CLAUSE_INVALID, CLAUSE_KEY_TAKEN, CLAUSE_KEY_IMMUTABLE, CLAUSE_VERSION_REQUIRED or VERSION_CONFLICT. Requires Bid Desk and permission to manage Bid Desk settings.
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 SaveBidClause($input: SaveBidClauseInput!) {
saveBidClause(input: $input) {
id
title
status
key
riskTags
text
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SaveBidClause($input: SaveBidClauseInput!) {\n saveBidClause(input: $input) {\n id\n title\n status\n key\n riskTags\n text\n }\n}",
"variables": {
"input": {
"key": "string",
"text": "string",
"title": "string"
}
}
}
EOF
Variables:
{
"input": {
"key": "string",
"text": "string",
"title": "string"
}
}
Response:
{
"data": {
"saveBidClause": {
"id": "id",
"title": "string",
"status": "ACTIVE",
"key": "string",
"riskTags": [
"string"
],
"text": "string"
}
}
}
saveBidClause(
input: SaveBidClauseInput!
): BidClause!
Arguments
saveBidClause.input ● SaveBidClauseInput! non-null input
The clause.
Type
BidClause object
One standard contract clause of the organization's library.