POST selfie/hashtags
From Social ID Developers
Deprecation notice: this API is deprecated since July 19, 2018.
Contents |
Description
Creates a new hashtag to be monitored.
Resource URL
POST https://api.socialidnow.com/v1/marketing/selfie/hashtags
Parameters
JSON Parameters
hashtag | required | a hash in the format field:value, with the necessary fields to create the hashtag: |
---|---|---|
hashtag | required | hashtag to be monitored. |
name | required | reference name of the hashtag. |
picture_url | required | reference picture url of the hashtag. |
Authentication
This API requires Account authentication. See Authentication.
Response
Response Status
created (201) | The hashtag was created successfully. |
---|---|
bad_request (400) | Some required parameter was not informed. |
unauthorized (401) | The authentication is wrong. See Authentication. |
unprocessable_entity (422) | Validation error in the field "hashtag". The hashtag must be unique in the system and must contain only the following characters: a-z, A-Z, 0-9, -, _ |
internal_server_error (500) | An unknown error happened. |
Examples
Request
Creates the hashtag "fashion" to be monitored by the application.
curl -iX POST 'https://api.socialidnow.com/v1/marketing/selfie/hashtags' \ -d '{"hashtag":{"hashtag":"fashion", "name":"Fashion", "picture_url":"http://img2.timeinc.net/people/i/2006/stylechannel/hitormiss/061204/gisele_bundchen300.jpg"}}' \ -H 'Content-type:application/json' \ --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
Response
Response Headers
HTTP/1.1 201 Created Status: 201