/accounts/{accountId}/shops/{shopId}/userMotives
Get a list of user motives from your library.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
shopId |
required | path | int | the unique identifier of the shop | |
page |
query | 0 |
int | zero-based page index | |
size |
query | 10 |
int | number of items per page |
<pagedData>
<records>...</records>
<totalElements>...</totalElements>
</pagedData>
{
"pagedData" : {
"records" : [ { }, { } ],
"totalElements" : 12345
}
}
/accounts/{accountId}/shops/{shopId}/userMotives/{motiveId}
Get a single motive by its id.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
motiveId |
required | path | int | the unique identifier of the motive | |
shopId |
required | path | int | the unique identifier of the shop |
<motive>
<id>...</id>
<uuid>...</uuid>
<name>funny thing</name>
<type>VECTOR</type>
</motive>
{
"motive" : {
"id" : 12345,
"uuid" : "...",
"name" : "funny thing",
"type" : "VECTOR"
}
}
/accounts/{accountId}/shops/{shopId}/userMotives/{motiveId}
Delete motive.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
motiveId |
required | path | int | the unique identifier of the motive | |
shopId |
required | path | int | the unique identifier of the shop |
| Media Type | Data Type | Description |
|---|---|---|
application/json |
object
|
|
application/xml |
anyType
|
/accounts/{accountId}/shops/{shopId}/userMotives/createFromData
Handles single Shirtplatform UserMotiveUpload based File Upload.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
shopId |
required | path | int | the unique identifier of the shop |
| Media Type | Data Type | Description |
|---|---|---|
application/json |
UserMotiveUpload | the motive upload data including image URL and metadata |
application/xml |
UserMotiveUpload |
<userMotiveUpload>
<attachment>...</attachment>
<filename>...</filename>
<url>...</url>
</userMotiveUpload>
{
"userMotiveUpload" : {
"attachment" : "...",
"filename" : "...",
"url" : "..."
}
}
<motive>
<id>...</id>
<uuid>...</uuid>
<name>funny thing</name>
<type>VECTOR</type>
</motive>
{
"motive" : {
"id" : 12345,
"uuid" : "...",
"name" : "funny thing",
"type" : "VECTOR"
}
}
/accounts/{accountId}/shops/{shopId}/userMotives/createFromMultipartForm
Handles single HTTP Form-based File Upload.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
shopId |
required | path | int | the unique identifier of the shop |
| Media Type | Data Type | Description |
|---|---|---|
multipart/form-data |
(custom)
|
the multipart form data containing the motive image file |
<motive>
<id>...</id>
<uuid>...</uuid>
<name>funny thing</name>
<type>VECTOR</type>
</motive>
{
"motive" : {
"id" : 12345,
"uuid" : "...",
"name" : "funny thing",
"type" : "VECTOR"
}
}