# GetManifestsWithFiles returns application manifests using provided files to generate them

`POST /api/v1/applications/manifestsWithFiles`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: apiKey, header Authorization. A token sent as `Authorization: Bearer <token>`. [API Docs](https://sourcey-argocd.pages.dev/developer-guide/api-docs/index.md#authorization) shows how to get one.

Request body: application/json (required)

 (streaming inputs)

Type: object

Schema: [applicationApplicationManifestQueryWithFilesWrapper](https://sourcey-argocd.pages.dev/api/models/applicationapplicationmanifestquerywithfileswrapper/index.md)

- `chunk` (optional)
  Reference: [applicationFileChunk](https://sourcey-argocd.pages.dev/api/models/applicationfilechunk/index.md); Type: object

- `query` (optional)
  Reference: [applicationApplicationManifestQueryWithFiles](https://sourcey-argocd.pages.dev/api/models/applicationapplicationmanifestquerywithfiles/index.md); Type: object

Responses:

- 200: A successful response.

Content type: application/json

Type: object

Schema: [repositoryManifestResponse](https://sourcey-argocd.pages.dev/api/models/repositorymanifestresponse/index.md)

- `commands` (optional)
  Type: array
  
  Items:
    Type: string

- `manifests` (optional)
  Type: array
  
  Items:
    Type: string

- `namespace` (optional)
  Type: string

- `revision` (optional)
  Type: string

- `server` (optional)
  Type: string

- `sourceIntegrityResult` (optional)
  Reference: [v1alpha1SourceIntegrityCheckResult](https://sourcey-argocd.pages.dev/api/models/v1alpha1sourceintegritycheckresult/index.md); Type: object
  
  SourceIntegrityCheckResult represents a conclusion of the SourceIntegrity evaluation.
  Each check performed on a source(es), holds a check item representing all checks performed.

- `sourceType` (optional)
  Type: string

- `verifyResult` (optional)
  Type: string
  
  Deprecated: Use sourceIntegrityResult for more detailed information. verifyResult will be removed with the next major version.

- default: An unexpected error response.

Content type: application/json

Type: object

Schema: [runtimeError](https://sourcey-argocd.pages.dev/api/models/runtimeerror/index.md)

- `code` (optional)
  Type: integer, int32

- `details` (optional)
  Type: array
  
  Items:
    Reference: [protobufAny](https://sourcey-argocd.pages.dev/api/models/protobufany/index.md); Type: object

- `error` (optional)
  Type: string

- `message` (optional)
  Type: string

## Examples

### cURL

```bash
curl -X POST 'https://argocd.example.com/api/v1/applications/manifestsWithFiles' \
  -H 'Authorization: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "chunk": {
    "chunk": "dGVzdA=="
  },
  "query": {
    "appNamespace": "string",
    "checksum": "string",
    "name": "string",
    "project": "string"
  }
}'
```

### JavaScript

```javascript
const body = `{
  "chunk": {
    "chunk": "dGVzdA=="
  },
  "query": {
    "appNamespace": "string",
    "checksum": "string",
    "name": "string",
    "project": "string"
  }
}`;

const response = await fetch('https://argocd.example.com/api/v1/applications/manifestsWithFiles', {
  method: 'POST',
  headers: {
    'Authorization': 'YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "chunk": {
    "chunk": "dGVzdA=="
  },
  "query": {
    "appNamespace": "string",
    "checksum": "string",
    "name": "string",
    "project": "string"
  }
}'''

response = requests.post(
    'https://argocd.example.com/api/v1/applications/manifestsWithFiles',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
