put https://api.comapi.com/apispaces//push/apnstoken
This uses a multi part form submission
Please note that this API call uses a content type of multipart/form-data instead of application/json as normal due to it needing the private key file uploading. An example HTTP submission is shown below:
PUT /apispaces/ff8044b5-2ce2-4843-9dff-4ba1f72fb2ae/push/apnstoken HTTP/1.1
Host: api.comapi.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50SWQiOjM3MDA3LCJyZXNlbGxlcklkIjozNjA3MiwiZXhwIjoxNTI3NjAzODU1LCJhdWQiOiJodHRwczovL2FwaS5jb21hcGkuY29tIiwiaXNzIjoiaHR0cHM6Ly9kb3RtYWlsZXIuY29tIiwiYXBpU3BhY2VJZCI6ImVhODA0NGI1LTJjZjItNDg0My05ZGZmLTRiZDFmNzJmYjJhZSIsInB
Cache-Control: no-cache
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="key"; filename="privateKey.pem"
Content-Type: image/svg+xml
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="keyId"
The keyid
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="teamId"
The teamId
------WebKitFormBoundary7MA4YWxkTrZu0gW--