Add a Reaction emoji to a pack

Changed on
put/reaction-emojis/

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1
  • URL
    https://cf-blast.livelikecdn.com/api/v1/reaction-emojis/
  • Auth
    none required

Query parameters

emojiboolean

If this parameter is set to true, at least one of the two (file or emoji_unicode) need to be passed.

Request body

namestring required

Name of the reaction emoji to be added

pack_idstring required

id of the reaction pack to which the reaction needs to be added

filestring binary required

Image file for the reaction (Required by default if emoji query parameter isn't true)

order_indexinteger

Optional index to order the emoji in the reaction pack. Smaller numbers sort first.

emoji_unicodestring

Expects an emoji character or a unicode escape sequence for the same to process and store as the character

Response

201

idstring
urlstring
namestring
pack_idstring
pack_urlstring
pack_namestring
filestring
emoji_unicodeunknown
order_indexinteger
mimetypestring

Example response

{
  "id": "fa100cf3-ada2-4bbe-9fd1-ec6b02059913",
  "url": "http://localhost:8888/api/v1/reaction-emojis/fa100cf3-ada2-4bbe-9fd1-ec6b02059913/",
  "name": "reaction-test",
  "pack_id": "813986e8-5bb3-4d28-9371-d347d82bb294",
  "pack_url": "http://localhost:8888/api/v1/reaction-packs/813986e8-5bb3-4d28-9371-d347d82bb294/",
  "pack_name": "Test Reaction Pack 1",
  "file": "http://localhost:8888/media/assets/51edb4e3-2d91-4fd5-80ce-9ca2012bd1a4.jpg",
  "mimetype": "image/jpeg"
}

Changes