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
name
string
required

Filename ending with .py. Must be unique per team.

content
string
required

Plain text or base64-encoded file content. Base64 is auto-detected.

Response

Created

library_id
integer