saveBidDeskCompanyProfile
Requires permission biddesk:settings:manage.
Saves the company profile (what it sells, its goals, planned team size, personas in use). A stale expectedVersion is refused with VERSION_CONFLICT. Requires Bid Desk and permission to manage its 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 SaveBidDeskCompanyProfile($input: SaveBidDeskCompanyProfileInput!) {
saveBidDeskCompanyProfile(input: $input) {
goals
offerTiers
personasInUse
plannedTeamSize
version
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SaveBidDeskCompanyProfile($input: SaveBidDeskCompanyProfileInput!) {\n saveBidDeskCompanyProfile(input: $input) {\n goals\n offerTiers\n personasInUse\n plannedTeamSize\n version\n }\n}",
"variables": {
"input": {
"expectedVersion": 0,
"goals": [
"ACCURATE_COSTS"
],
"offerTiers": [
"CONFIGURED"
],
"personasInUse": [
"string"
],
"plannedTeamSize": 0
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"goals": [
"ACCURATE_COSTS"
],
"offerTiers": [
"CONFIGURED"
],
"personasInUse": [
"string"
],
"plannedTeamSize": 0
}
}
Response:
{
"data": {
"saveBidDeskCompanyProfile": {
"goals": [
"ACCURATE_COSTS"
],
"offerTiers": [
"CONFIGURED"
],
"personasInUse": [
"string"
],
"plannedTeamSize": 0,
"version": 0
}
}
}
saveBidDeskCompanyProfile(
input: SaveBidDeskCompanyProfileInput!
): BidDeskCompanyProfile!
Arguments
saveBidDeskCompanyProfile.input ● SaveBidDeskCompanyProfileInput! non-null input
The company profile to save, with the version it was read at.
Type
BidDeskCompanyProfile object
What the company told Bid Desk about itself during onboarding.