Codenvy Account API Put Photos

Plivo - Put Photos

Allows the client application to update user-editable information on a photo.nnnResource URLnnhttps://api.500px.com/v1/photos/:idnnnnAuthenticationnnRequired; OAuth. The client application must use the OAuth access token issued for the owner of the photo to access this resouce.nnnParametersnnThe application must provide the ID of the photo to update in the URL of the request. The following parameters are recognized when included in the query string or POST body:nnnnname: Title of the photo, up to 255 characters in length.nndescription: Text description of the photo, up to 65535 characters in length.nncategory: Integer number of the category of the photo. See category mapping for exact values.nntags: Comma-separated list of tags applicable to this photo.nnadd_tags: Comma-separated list of tags to add to this photos existing tags.nnremove_tags: Comma-separated list of tags to remove from this photos existing tags.nnshutter_speed: Shutter speed value for the photo, internally stored as string.nnfocal_length: Focal length value for the photo, internally stored as string.nnaperture: Aperture value value for the photo, internally stored as string.nniso: Integer ISO value for the photo.nncamera: Make and model of the camera used to take this photo.nnlens: Information about the lens used to take this photo.nnlatitude: Latitude of the location this photo was taken at represented by a decimal number.nnlongitude: Longitude of the location this photo was taken at represented by a decimal number.nnnsfw: Boolean value indicating that the photo may contain not-safe-for-work content or content not suitable for minors.nnlicense_type: Integer number of the license type chosen for this photo. See license type mapping for exact values.nnprivacy: Integer value indicating that the photo should be shown (0) or hidden (1) on the users profile.nncrop: A hash containing keys x, x2, y, y2 and representing coordinates within which the thumbnail must be cropped. The crop is made using the top left corner as the origin. The points must be given relative to image size 4, an image of at most 900px on the larger side. The client application may skip this if the user does not wish to change photo thumbnail.nnnnImplementation detailsnnA parameter missing from the request will not be updated. A parameter set to an empty string or null value will be interpreted as the user wishing to reset the value of the field to its default value.nnYou can use the add_tags and remove_tags parameters to manupulate a photos tags without having to send the complete list of tags in the request.nnnReturn formatnnA JSON object containing key photo, where photo is a Photo object in full format.nnnErrorsnnAll known errors cause the resource to return HTTP error code header together with a JSON array containing at least status and error keys describing the source of error.nnnn401: Invalid OAuth request: The request was refused because the OAuth signature is incorrect.nn404: Photo with ID not found: The photo ID provided is not known to the system.nn404: Photo with ID has been deleted: The photo has been deleted and can not be edited.nn404: Photo with ID belongs to a deactivated user: The photo belongs to a user that is no longer active and can not be edited.nn400: Bad photo category: An unrecognized photo category value has been provided.nn400: Bad license type: An unrecognized license type value has been provided.

Posted on:

2018-08-28

API Description

Provider

Plivo

decription

Voice & SMS API Platform: Plivo enables businesses and developers to tap into powerful Voice and SMS capabilities without carrier lock-in.

Documentation

Curl command through Streamdata.io

curl -v "https://streamdata.motwin.net/http:///accounthttps:codenvy.com/api/photos/:id?X-Sd-Token={streamdata_token}&add_tags: Comma-separated list of tags to add to this photos existing tags.={field_value}&aperture: Aperture value value for the photo, internally stored as string.={field_value}&camera: Make and model of the camera used to take this photo.={field_value}&category: Integer number of the category of the photo. See category mapping for exact values.={field_value}&crop: A hash containing keys x, x2, y, y2 and representing coordinates within which the thumbnail must be cropped. The crop is made using the top left corner as the origin. The points must be given relative to image size 4, an image of at most 900px={field_value}&description: Text description of the photo, up to 65535 characters in length.={field_value}&focal_length: Focal length value for the photo, internally stored as string.={field_value}&iso: Integer ISO value for the photo.={field_value}&latitude: Latitude of the location this photo was taken at represented by a decimal number.={field_value}&lens: Information about the lens used to take this photo.={field_value}&license_type: Integer number of the license type chosen for this photo. See license type mapping for exact values.={field_value}&longitude: Longitude of the location this photo was taken at represented by a decimal number.={field_value}&name: Title of the photo, up to 255 characters in length.={field_value}&nsfw: Boolean value indicating that the photo may contain not-safe-for-work content or content not suitable for minors.={field_value}&privacy: Integer value indicating that the photo should be shown (0) or hidden (1) on the users profile.={field_value}&remove_tags: Comma-separated list of tags to remove from this photos existing tags.={field_value}&shutter_speed: Shutter speed value for the photo, internally stored as string.={field_value}&tags: Comma-separated list of tags applicable to this photo.={field_value}"



Return to Main Page



Submit Your API

Join the gallery to find out how much you can save with Streamdata.io.