changeBidMemberRole
Requires permission biddesk:bid:update.
Gives a bid member another role. The owner stays a bid manager (BID_OWNER_ROLE_LOCKED). Refused with BID_CLOSED on a closed bid and VERSION_CONFLICT when someone saved first. Requires Bid Desk and permission to update 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 ChangeBidMemberRole($input: ChangeBidMemberRoleInput!) {
changeBidMemberRole(input: $input) {
id
displayName
createdAt
bidId
role
updatedAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ChangeBidMemberRole($input: ChangeBidMemberRoleInput!) {\n changeBidMemberRole(input: $input) {\n id\n displayName\n createdAt\n bidId\n role\n updatedAt\n }\n}",
"variables": {
"input": {
"expectedVersion": 0,
"memberId": "id",
"role": "APPLICATION_ENGINEER"
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"memberId": "id",
"role": "APPLICATION_ENGINEER"
}
}
Response:
{
"data": {
"changeBidMemberRole": {
"id": "id",
"displayName": "string",
"createdAt": "2025-01-15T00:00:00Z",
"bidId": "id",
"role": "APPLICATION_ENGINEER",
"updatedAt": "2025-01-15T00:00:00Z"
}
}
}
changeBidMemberRole(
input: ChangeBidMemberRoleInput!
): BidMember!
Arguments
changeBidMemberRole.input ● ChangeBidMemberRoleInput! non-null input
The membership, its version and the new role.
Type
BidMember object
A staff person working on a bid, in one role.