> For the complete documentation index, see [llms.txt](https://api-docs.myhappyforce.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.myhappyforce.com/docs/api-reference/external-auth-resource.md).

# External Auth Resource

## PUT /api/v1/internal/auth/oauth

>

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"paths":{"/api/v1/internal/auth/oauth":{"put":{"tags":["external-auth-resource"],"operationId":"setExternalAuthorization","requestBody":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExternalAuthRequestDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExternalAuthResponseDTO"}}}}}}}},"components":{"schemas":{"ExternalAuthRequestDTO":{"type":"object","properties":{"params":{"type":"object","additionalProperties":{"type":"string"}}}},"ExternalAuthResponseDTO":{"type":"object","properties":{"redirectURI":{"type":"string"},"message":{"type":"string"},"status":{"type":"string","enum":["SUCCESS","FAILURE","SUCCESS_REDIRECT"]}}}}}}
```
