POST
/
library
cURL
curl --request POST \
  --url https://app.loadforge.com/api/v2/library \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "helpers.py",
  "content": "def foo():\n    return 1"
}'
{
  "library_id": 456
}
Create a team Python library file. content can be plain text or base64 (auto-detected). name must be unique per team and end with .py.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Created

The response is of type object.