The ID of the article or topic associated with this bookmark. A case ID or an article ID is composed of a 2-4 letter prefix, followed by a dash and 15 digits.
This attribute must be provided if resourceType is set to "1 - Article" or "2 - Topic".
userId
string [ 1 .. 10 ] characters ^[1-9]\d*$
The ID of the user associated with the bookmark.
userType
string
The type of the user associated with the bookmark.
Enum:"customer""agent"
bookmarkName
string [ 1 .. 255 ] characters ^[\w\W]+$
The name of the bookmark.
resourceType
integer <int32> [ 1 .. 3 ]
Determines the type of resource:
1 - Article
2 - Topic
3 - External Content
resourceName
string [ 1 .. 255 ] characters ^[\w\W]+$
The name of the resource associated with the bookmark.
This attribute is only available for article and topic bookmarks.
externalContentId
string [ 1 .. 255 ] characters ^[\w\W]+$
The ID of the external content.
This attribute must be provided if resourceType is set to "3 - External Content".
Responses
201
Created
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
406
Not acceptable
415
Incorrect Content Type Header
500
Internal server error
post/portals/{portalID}/bookmarks
Request samples
Payload
curl
JavaScript
Node.js
Python
application/json
{
"resourceId": "PROD-9274782",
"resourceType": 2,
"bookmarkName": "DemoBookmark"
}
Response samples
400
401
403
404
406
500
application/json
Required query parameter is missing.
{
"code": "400-112",
"developerMessage": "Required query parameter(s) is missing. The following parameters are required: <param name>"