createBidKnowledgeNote
Requires permission biddesk:knowledge:write.
Saves a draft note on an item, with where it came from. Requires Bid Desk. Requires permission to write knowledge.
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 CreateBidKnowledgeNote($input: CreateBidKnowledgeNoteInput!) {
createBidKnowledgeNote(input: $input) {
id
title
authorName
productName
reviewerName
status
source {
bidNumber
bidId
sourceType
threadId
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation CreateBidKnowledgeNote($input: CreateBidKnowledgeNoteInput!) {\n createBidKnowledgeNote(input: $input) {\n id\n title\n authorName\n productName\n reviewerName\n status\n source {\n bidNumber\n bidId\n sourceType\n threadId\n }\n }\n}",
"variables": {
"input": {
"body": "string",
"productId": "id",
"sourceType": "COST_OVERRIDE",
"title": "string"
}
}
}
EOF
Variables:
{
"input": {
"body": "string",
"productId": "id",
"sourceType": "COST_OVERRIDE",
"title": "string"
}
}
Response:
{
"data": {
"createBidKnowledgeNote": {
"id": "id",
"title": "string",
"authorName": "string",
"productName": "string",
"reviewerName": "string",
"status": "ARCHIVED",
"source": {
"bidNumber": "string",
"bidId": "id",
"sourceType": "COST_OVERRIDE",
"threadId": "id"
}
}
}
}
createBidKnowledgeNote(
input: CreateBidKnowledgeNoteInput!
): BidKnowledgeNote!
Arguments
createBidKnowledgeNote.input ● CreateBidKnowledgeNoteInput! non-null input
The note.
Type
BidKnowledgeNote object
Know-how about an item or assembly, written and reviewed by people.