Update photo
documentedUpdate a photo by ID; supports uploading a new image.
PUT /xn/rest/{network}/1.0/PhotoPhotosno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://external.ningapis.com/xn/rest/{{$network}}/1.0/Photo' \
-X PUT \
-H 'Authorization: OAuth oauth_signature_method="PLAINTEXT",oauth_consumer_key="{{NING_OAUTH_CONSUMER_KEY}}",oauth_token="{{NING_OAUTH_TOKEN}}",oauth_signature="{{NING_OAUTH_SIGNATURE}}"' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-d 'id={{$photo_id}}:Photo:{{$photo_version}}' \
-d 'title={{$title}}' \
-d 'description={{$description}}'