> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.schoolset.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.schoolset.io/_mcp/server.

# Mark a form submission as imported

POST https://ssuccessv2.com/app/api/v1/forms/submissions/{id}/mark-imported

Sets the selected submission's imported flag to true. The endpoint is idempotent and returns an empty data array after saving.

Reference: https://docs.schoolset.io/api-reference/school-set-api/forms/mark-form-submission-imported

## Authentication

- `Authorization` header (bearer token, required) — The signed-in SchoolSet user token sent by the frontend.

## Request

### Path parameters

- `id` (long, required) — Submission ID to mark as imported.

## Response

### 200

Submission marked imported; no resource is returned.

- `status` (enum, required)
  - Allowed values: `success`
- `message` (string, required)
- `data` (list of any, required)

## Errors

### 401 Unauthorized Error

The access token is missing or invalid.

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 403 Forbidden Error

The user lacks edit-forms permission.

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 404 Not Found Error

The submission does not exist in the active school.

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

## Examples

**Response**

```json
{
  "status": "success",
  "message": "",
  "data": []
}
```

**SDK Code**

```python Forms_markFormSubmissionImported_example
import requests

url = "https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Forms_markFormSubmissionImported_example
const url = 'https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Forms_markFormSubmissionImported_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Forms_markFormSubmissionImported_example
require 'uri'
require 'net/http'

url = URI("https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Forms_markFormSubmissionImported_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Forms_markFormSubmissionImported_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Forms_markFormSubmissionImported_example
using RestSharp;

var client = new RestClient("https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Forms_markFormSubmissionImported_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://ssuccessv2.com/app/api/v1/forms/submissions/901/mark-imported")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```