GET
/courses/{courseId}/to-draft
curl \
-X GET http://localhost:3003/api/dev/courses/5b0dd6b8-7440-4c5c-8292-124217cd77d0/to-draft \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 184.76
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 91
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 67
ETag: W/"43-sLMY1SjfJKCHYq+jaq+Z0dYjvP0"
Date: Tue, 05 Sep 2023 16:01:14 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"message": "Le cours a été mis en draft avec success"
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 184.76
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 91
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 67
ETag: W/"43-sLMY1SjfJKCHYq+jaq+Z0dYjvP0"
Date: Tue, 05 Sep 2023 16:01:14 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (400)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 161.163
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 80
ETag: W/"50-WHCnbF9o/ldSFRlTwP+/a3ncJ6Y"
Date: Tue, 05 Sep 2023 16:01:36 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 400,
"message": "Oups! Il semblerait que la référence soient incorrect"
}
Response examples (400)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 161.163
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 80
ETag: W/"50-WHCnbF9o/ldSFRlTwP+/a3ncJ6Y"
Date: Tue, 05 Sep 2023 16:01:36 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (401)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 142.851
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 89
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 128
ETag: W/"80-HSc6p6YI9gsUT+IZDwZ2wCV0nD0"
Date: Tue, 05 Sep 2023 16:01:55 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 401,
"message": "Oups! Il semblerait que vous ne possédez pas les autorisations nécessaires pour avoir ces ressources."
}
Response examples (401)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 142.851
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 89
X-RateLimit-Reset: Tue Sep 05 2023 17:04:18 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 128
ETag: W/"80-HSc6p6YI9gsUT+IZDwZ2wCV0nD0"
Date: Tue, 05 Sep 2023 16:01:55 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}