openapi: 3.1.0 info: title: Microsoft Graph Admin Admin.admin Applications Add Password API description: 'Microsoft Graph API for managing administrative resources in Microsoft Entra ID. This API enables administrators to manage Microsoft Edge browser settings, Internet Explorer mode configurations, site lists, shared browser sites, Microsoft 365 Apps installation options, people insights, service announcements, SharePoint settings, Copilot administration, directory administrative units, and admin consent policies.' version: 1.0.0 contact: name: Microsoft Graph API Support url: https://developer.microsoft.com/graph servers: - url: https://graph.microsoft.com/v1.0 description: Microsoft Graph API v1.0 endpoint tags: - name: Applications Add Password description: Operations for managing application registrations paths: /applications/{application-id}/addPassword: description: Provides operations to call the addPassword method. parameters: - name: application-id in: path description: The unique identifier of application required: true schema: type: string x-ms-docs-key-type: application post: tags: - Applications Add Password summary: Microsoft Graph Create Add Password description: Adds a strong password or secret to an application. You can also add passwords while creating the application. operationId: addPasswordApplications externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/application-addpassword?view=graph-rest-1.0 requestBody: description: Action parameters content: application/json: schema: type: object properties: passwordCredential: anyOf: - $ref: '#/components/schemas/PasswordCredential' - type: object nullable: true examples: addPasswordApplicationsRequestExample: $ref: '#/components/examples/addPasswordApplicationsRequestExample' required: true responses: 2XX: description: Success content: application/json: schema: $ref: '#/components/schemas/PasswordCredential' examples: PasswordCredentialExample: $ref: '#/components/examples/PasswordCredentialExample' 4XX: $ref: '#/components/responses/error' 5XX: $ref: '#/components/responses/error' x-microcks-operation: delay: 100 dispatcher: FALLBACK dispatcherRules: 2XX x-ms-docs-operation-type: action components: schemas: InnerError: title: InnerError type: object properties: request-id: type: string date: type: string format: date-time client-request-id: type: string PasswordCredential: title: passwordCredential required: - '@odata.type' type: object properties: customKeyIdentifier: type: string description: Do not use. format: base64url nullable: true displayName: type: string description: Friendly name for the password. Optional. nullable: true endDateTime: pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$ type: string description: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. format: date-time nullable: true hint: type: string description: Contains the first three characters of the password. Read-only. nullable: true keyId: pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ type: string description: The unique identifier for the password. format: uuid nullable: true secretText: type: string description: Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. nullable: true startDateTime: pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$ type: string description: The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. format: date-time nullable: true '@odata.type': type: string ODataError: title: ODataError type: object required: - error properties: error: $ref: '#/components/schemas/MainError' ErrorDetail: title: ErrorDetail type: object required: - code - message properties: code: type: string message: type: string target: type: string nullable: true MainError: title: MainError type: object required: - code - message properties: code: type: string description: Error code message: type: string description: Error message target: type: string description: Target of the error nullable: true details: type: array items: $ref: '#/components/schemas/ErrorDetail' innerError: $ref: '#/components/schemas/InnerError' examples: ODataErrorExample: value: error: code: BadRequest message: The request is invalid. target: /resource details: - code: InvalidParameter message: Parameter value is invalid. target: parameterName innerError: request-id: 00000000-0000-0000-0000-000000000001 date: '2024-01-15T10:30:00Z' client-request-id: 00000000-0000-0000-0000-000000000002 addPasswordApplicationsRequestExample: value: passwordCredential: customKeyIdentifier: 00000000-0000-0000-0000-000000000001 displayName: Example Display Name endDateTime: '2024-01-15T10:30:00Z' hint: string-value keyId: 00000000-0000-0000-0000-000000000001 secretText: string-value '@odata.type': '#microsoft.graph.passwordcredential' PasswordCredentialExample: value: customKeyIdentifier: 00000000-0000-0000-0000-000000000001 displayName: Example Display Name endDateTime: '2024-01-15T10:30:00Z' hint: string-value keyId: 00000000-0000-0000-0000-000000000001 secretText: string-value '@odata.type': '#microsoft.graph.passwordcredential' responses: error: description: error content: application/json: schema: $ref: '#/components/schemas/ODataError' examples: ODataErrorExample: $ref: '#/components/examples/ODataErrorExample'