Reserves a named image tag and returns five-minute direct-upload credentials. Supply the image ID to refresh the same reservation.
Required permission
Project > Images > General > Import
Path parameters
projectId
string requiredID of the project
Request body
- {object}
name
string requiredmin length1max length128pattern^[a-z0-9]+(?:[._-][a-z0-9]+)*$tag
string requiredpattern^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$imageId
stringmin length24max length24
Response body
- {object}Response object.
data
{object} requiredResult data.registryUrl
string requiredrepository
string requiredimageId
string requiredmin length24max length24token
string requiredexpiresAt
string required
POST /v1/projects/{projectId}/images/upload-credentials
POST /v1/teams/{teamId}/projects/{projectId}/images/upload-credentials
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"string","tag":"string"}' \
https://api.northflank.com/v1/projects/{projectId}/images/upload-credentialsExample response
200 OK
Scoped direct-upload credentials.
JSON