cURL
curl --request PUT \ --url https://api.example.com/api/trpc/projects.update \ --header 'Content-Type: application/json' \ --data ' { "0.json.data": { "project_id": "<string>", "name": "<string>", "description": "<string>", "settings": { "base_url": "<string>", "default_timeout": 123, "environment": "<string>", "viewport": { "width": 123, "height": 123 } }, "tags": [ {} ] } } '
{ "id": "<string>", "name": "<string>", "description": "<string>", "updated_at": "<string>", "settings": {}, "tags": [ {} ], "400 Bad Request": {}, "404 Not Found": {}, "401 Unauthorized": {}, "409 Conflict": {} }
Update an existing project configuration
Show properties
curl -X PUT https://api.tryiris.dev/api/trpc/projects.update \ -H "Authorization: Bearer ${API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "0": { "json": { "data": { "project_id": "prj_9a8b7c6d5e", "name": "e-commerce-testing-v2", "description": "Updated end-to-end testing suite for our e-commerce platform", "settings": { "base_url": "https://shop.example.com", "default_timeout": 60, "environment": "production", "viewport": { "width": 1440, "height": 900 } }, "tags": ["e-commerce", "web", "production"] } } } }'
{ "id": "prj_9a8b7c6d5e", "name": "e-commerce-testing-v2", "description": "Updated end-to-end testing suite for our e-commerce platform", "created_at": "2024-01-20T11:00:00Z", "updated_at": "2024-01-20T12:00:00Z", "settings": { "base_url": "https://shop.example.com", "default_timeout": 60, "environment": "production", "viewport": { "width": 1440, "height": 900 } }, "tags": ["e-commerce", "web", "production"] }
{ "error": "invalid_request", "message": "Invalid viewport dimensions" }
{ "error": "not_found", "message": "Project not found" }
{ "error": "unauthorized", "message": "Invalid API key provided" }
{ "error": "conflict", "message": "Project name already exists" }