Update Image Field
Uploads or replaces an image for a specific field on an object (registrant, contact, or sponsor). Send as a multipart/form-data request with a single file parameter containing the image. The file must be no larger than 5MB and use a valid extension: jpg, jpeg, gif, png, webp, or svg. The image_type path parameter specifies the object type, image_id the object’s ID, and field_id the target image field (e.g., profile_picture).
Authorizations
OAuth 2.0 bearer token obtained from POST /oauth2/token. Tokens expire after 30 minutes. Include in the Authorization header as Bearer {access_token}.
Path Parameters
string - required - The model type of the object being affected ('registrant', 'contact' or 'sponsor')
registrant, contact, sponsor "contact"
integer - required - The Swoogo ID of the object being affected
1
string - required - The ID of the image field to be updated (e.g. profile_picture, c_12345)
"c_12345"
Body
Image file no larger than 5MB in size and has one of these valid extensions 'jpg', 'jpeg', 'gif', 'png', 'webp', 'svg'
Response
Image uploaded successfully