Skip to content

Commit 2b9d481

Browse files
Merge pull request #768 from centrapay/update-collection-fields
Add mediaUpload field to collection
2 parents 89795e4 + 0c289cc commit 2b9d481

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

legacy/src/api/assets/tokens.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ A redemption condition is created for each merchant that accepts tokens from a c
4040
| status | String | The status of the token collection. Valid values include 'active'. |
4141
| createdBy | {% dt CRN %} | The identity that created the activity. |
4242
| createdAt | {% dt Timestamp %} | Timestamp at which the token collection was created. |
43+
| mediaUploadId | String {% opt %} | The id of the [media upload] [] image of the collection. |
4344

4445
<a name="tokenExpiresAfter">
4546
### Token Expires After **EXPERIMENTAL**
@@ -88,6 +89,7 @@ A redemption condition is created for each merchant that accepts tokens from a c
8889
"amount": "400"
8990
},
9091
"type": "product",
92+
"mediaUploadId": "12345",
9193
})
9294
{% endreqspec %}
9395

@@ -110,6 +112,7 @@ A redemption condition is created for each merchant that accepts tokens from a c
110112
"status": "active",
111113
"createdBy": "crn::user:b657195e-dc2f-11ea-8566-e7710d592c99",
112114
"createdAt": "2021-05-12T04:30:11.001Z",
115+
"mediaUploadId": "12345",
113116
}
114117
{% endjson %}
115118

@@ -154,6 +157,7 @@ Note: The `pageKey` value, if provided, needs to be URL-encoded.
154157
"status": "active",
155158
"createdBy": "crn::user:b657195e-dc2f-11ea-8566-e7710d592c99",
156159
"createdAt": "2021-05-12T04:30:11.001Z",
160+
"mediaUploadId": "12345",
157161
}]
158162
}
159163
{% endjson %}
@@ -257,4 +261,5 @@ Note: The `pageKey` value, if provided, needs to be URL-encoded.
257261
| 403 | TOKEN_ALREADY_CREATED | Token with supplied parameters already exists. |
258262
| 403 | LIVENESS_MISMATCH | The account is test and the collection's liveness is main or vice versa. |
259263

260-
[paginated]: {% link api/pagination.md %}
264+
[paginated]: {% link api/pagination.md %}
265+
[media upload]: {% link api/media-uploads.md %}

0 commit comments

Comments
 (0)