Update a Specific project#
📣 this endpoint updates a specific project . In this PUT request the project ID has to be provided in the URL.✳ list of URL parametersproject_id = 36 character in length
📢 Info message : Here URL is contructed like
PUT /projects/<project_id>
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"name": "Project skshahra updated 1",
"type": "both",
"region": "Africa",
"description": "Project new Description",
"allow_direct_play": false,
"enable_video_drm": false,
"enable_live_drm": false,
"custom_storage": {
"name": "MyNewCustomStorage",
"key": "NewstorageKey123",
"secret": "NewstorageSecret123",
"region": "Newus-east-1",
"bucket": "Newmybucket",
"endpoint": "newlocalhost:9001",
"driver": "news3",
"disable_ssl" : false,
"s3_force_path_style": false,
"default": false
}
}
Request Code Samples
curl --location --request PUT 'http://localhost:8080/v1/projects/f32a0116-fe11-454c-8e6a-5ff4101882e5' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Project skshahra updated 1",
"type": "both",
"region": "Africa",
"description": "Project new Description",
"allow_direct_play": false,
"enable_video_drm": false,
"enable_live_drm": false,
"custom_storage": {
"name": "MyNewCustomStorage",
"key": "NewstorageKey123",
"secret": "NewstorageSecret123",
"region": "Newus-east-1",
"bucket": "Newmybucket",
"endpoint": "newlocalhost:9001",
"driver": "news3",
"disable_ssl" : false,
"s3_force_path_style": false,
"default": false
}
}'
Responses
application/json {"message":"Resource Updated successfully .","success":true}
Modified at 2024-07-16 07:35:54