PUT
/
admin
/
emails
/
status
/
{mail_status}
/
update
curl --request PUT \
  --url https://api.helpyousponsor.com/v1/admin/emails/status/{mail_status}/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email_ids": [
    "1,2,3"
  ],
  "key": "4"
}'
{
  "message": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mail_status
integer
required

The mail status key

Body

application/json
Data needed to update the status of multiple emails
email_ids
integer[]

The ids of the emails

key
string
Example:

"4"

Response

200
application/json
Successful operation
message
string

The status of the operation

status
string

The new status of the emails