Newer Version Available

This content describes an older version of this product. View Latest

Motifs Resources

Returns URLs for sets of small, medium, and large motif icons. Records have different sets of motif icons depending on the record type. The motif can also include the record type’s base color.

Available resources are:

Resource Description
/connect/motifs/idOrPrefix Returns a set of small, medium, and large motif icons for the specified record. Can also return the base color for the specified record.
/connect/motifs/batch/idOrPrefixList Returns a set of small, medium, and large motif icons for the specified records. Can also contain the base color for each specified record.

Motifs Resource

Returns a set of small, medium, and large motif icons for the specified record. Can also return the base color for the specified record.

Specify either an ID or key prefix for idOrPrefix.

Resource
1/connect/motifs/idOrPrefix
1/connect/communities/communityId/motifs/idOrPrefix
Available since release
27.0
Requires Chatter
No
HTTP methods
GET or HEAD
Response body
Motif
Example of GET
Request for user motifs: /connect/motifs/005D0000001LLO1
Response:
1{
2   "color": "1797C0",
3   "largeIconUrl": "/img/icon/profile64.png",
4   "mediumIconUrl": "/img/icon/profile32.png",
5   "smallIconUrl": "/img/icon/profile16.png"
6}

Batch Motifs Resource

Returns a set of small, medium, and large motif icons for the specified records. Can also contain the base color for each specified record.

Specify a comma-separated list of IDs and key prefixes for idOrPrefixList. You can mix IDs and key prefixes in the same request.

Resource
1/connect/motifs/batch/idOrPrefixList
1/connect/communities/communityId/motifs/batch/idOrPrefixList
Available since release
27.0
Requires Chatter
No
HTTP methods
GET or HEAD
Response body
Batch Results
Example of GET
Request for motifs for a user and a file: /connect/motifs/batch/005D0000001LLO1,069D00000001FHF
Response:
1{"results": [
2   {
3      "result": {
4         "color": "1797C0",
5         "largeIconUrl": "/img/icon/profile64.png",
6         "mediumIconUrl": "/img/icon/profile32.png",
7         "smallIconUrl": "/img/icon/profile16.png"
8      },
9      "statusCode": 200
10   },
11   {
12      "result": {
13         "color": "993333",
14         "largeIconUrl": "/img/content/content64.png",
15         "mediumIconUrl": "/img/content/content32.png",
16         "smallIconUrl": "/img/icon/files16.png"
17      },
18      "statusCode": 200
19   }
20]}