PUT selfie/hashtags/:hashtag

From Social ID Developers
Jump to: navigation, search

Deprecation notice: this API is deprecated since July 19, 2018.

Contents

Description

Updates a hashtag.

Resource URL

  PUT https://api.socialidnow.com/v1/marketing/selfie/hashtags/:hashtag

Parameters

URL Parameters

hashtag required hashtag identifier.

JSON Parameters

hashtag required a hash in the format field:value, with the necessary fields to update the hashtag:
hashtag optional hashtag to be monitored.
name optional reference name of the hashtag.
picture_url optional reference picture url of the hashtag.

Authentication

This API requires Account authentication. See Authentication.

Response

Response Status

ok (200) The hashtag was updated successfully.
bad_request (400) Some required parameter was not informed.
unauthorized (401) The authentication is wrong. See Authentication.
forbidden (403) The Account has no permission to access this hashtag.
not_found (404) The hashtag was not found.
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

Updates the name of the hashtag "fashion".

 curl -iX PUT 'https://api.socialidnow.com/v1/marketing/selfie/hashtags/fashion' \
        -d '{"hashtag":{"name":"Fashion Clothing"}}' \
        -H 'Content-type:application/json' \
        --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers

HTTP/1.1 200 Ok
Status: 200
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox