cURL
curl --request POST \ --url https://api.obselite.com/v0/files/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "description": "<string>", "alt": "<string>", "key": "<string>", "url": "<string>", "type": "<string>", "size": 123, "metadata": "<string>", "isPublished": true, "lockedAt": "<string>" }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "url": "<string>", "organization": {}, "user": {}, "userBanner": {}, "userAvatar": {}, "organizationAvatar": {}, "comments": [ {} ], "cycles": [ {} ], "resources": [ {} ], "tasks": [ {} ], "teams": [ {} ], "activities": [ {} ] }
The API token generated from the Obselite dashboard
Successful response
File UUID
The organization that owns this file, following the organization schema
The user who uploaded or owns this file, following the user schema
The user's banner image file, following the file schema
The user's profile picture file, following the file schema
The organization's profile picture file, following the file schema
Show child attributes